<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
	<title>用户管理</title>
	<jsp:include page="../../static/commonviews/header.jsp"/>
	<link type="text/css" href="<%=request.getContextPath()%>/static/css/index.css" rel="stylesheet"/>
</head>
<body>
	<div class="container-fluid" style="height: 100%">
		<div style="width: 100%;height: 8%;padding-top: 10px;min-height: 56px">
			<div id="toolbar" class="button-group">
				<button id="btnAdd" class="btn btn-default" onclick="addUser()"><i class="iconfont icon-xinzeng-copy"></i> 新增</button>
				<button id="btnEdit" class="btn btn-default" onclick="editUser()"><i class="iconfont icon-modify"></i> 修改</button>
				<button id="btnDel" class="btn btn-default" onclick="deleteUser()"><i class="iconfont icon-shanchu"></i> 删除</button>
				<button id="btnEditPassword" class="btn btn-default" onclick="editPassword()"><i class="iconfont icon-shanchu"></i> 修改密码</button>
				<button id="btnSet" class="btn btn-default" onclick="setPost()"><i class="iconfont icon-gangweiyaoqiu"></i> 设置岗位</button>
				<button id="btnPrint" class="btn btn-default" onclick="printUser()"><i class="iconfont icon-iconfontdayin"></i> 打印</button>
				<button id="btnExport" class="btn btn-default" onclick="exportUser()"><i class="iconfont icon-export"></i> 导出</button>
				<button id="btnClose" class="btn btn-default" onclick="exitFrame()"><i class="iconfont icon-tuichu"></i> 退出</button>
			</div>
		</div>

		<div class="row" style="width: 100%;height: 92%">
			<div class="col-md-3" style="height: 100%">
				<ul id="userTree" class="ztree"></ul>
			</div>
			<div class="col-md-9 table-container" style="height:100%;">
				<table id="userTable"></table>
			</div>
		</div>
	</div>

	<div id="add-content" style="display: none">
		<form id="addUserForm" class="form-horizontal" style="padding: 15px">
			<div class="form-group">
				<label for="FCODE" class="col-xs-2 control-label">用户代码:</label>
				<div class="col-xs-4">
					<input type="text" class="form-control" id="FCODE" name="FCODE" placeholder="用户代码">
				</div>
				<label for="FNAME" class="col-xs-2 control-label">用户名称:</label>
				<div class="col-xs-4">
					<input type="text" class="form-control" id="FNAME" name="FNAME" placeholder="用户名称">
				</div>
			</div>
			<div class="form-group">
				<label for="FLOGINCODE" class="col-xs-2 control-label">登陆名:</label>
				<div class="col-xs-8">
					<input type="text" class="form-control" id="FLOGINCODE" name="FLOGINCODE" placeholder="登录名">
				</div>
				<div class="col-xs-2">
					<div class="checkbox">
						<label>
							<input type="checkbox" id="FISSTOP" name="FISSTOP"> 停用
						</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label for="FPASSWORD" class="col-xs-2 control-label">用户密码:</label>
				<div class="col-xs-4">
					<input type="password" class="form-control" id="FPASSWORD" name="FPASSWORD" placeholder="用户密码">
				</div>
				<label for="FCONFIRMPASSWORD" class="col-xs-2 control-label">确认密码:</label>
				<div class="col-xs-4">
					<input type="password" class="form-control" id="FCONFIRMPASSWORD" name="FCONFIRMPASSWORD" placeholder="确认密码">
				</div>
			</div>
			<div class="form-group">
				<label for="FDEPTNAME" class="col-xs-2 control-label">所属机构:</label>
				<div class="col-xs-9">
					<input type="text" class="form-control" id="FDEPTNAME" name="FDEPTNAME" style="cursor: pointer" placeholder="所属机构" readonly>
				</div>
				<div class="col-xs-1">
					<i class="icon iconfont icon-binoculars"  id = "menuBtn"  onclick="showMenu();return false;" style="font-size: 22px;color: #0a6999;margin-left:-0.5em"></i>
				</div>
				<%--<label class="col-xs-2 control-label" id = "menuBtn"  onclick="showMenu();return false;">选择</label>--%>
			</div>
			<div class="form-group">
				<label for="FDATARANGENAME" class="col-xs-2 control-label">查阅范围:</label>
				<div class="col-xs-9">
					<input type="text" class="form-control" id="FDATARANGENAME" name="FDATARANGENAME" style="cursor: pointer" placeholder="查阅范围" readonly>
				</div>
				<div class="col-xs-1">
					<i class="icon iconfont icon-binoculars" id = "menuBtn2"  onclick="showMenu2();return false;" style="font-size: 22px;color: #0a6999;margin-left:-0.5em"></i>
				</div>
				<%--<label class="col-xs-2 control-label" id = "menuBtn2"  onclick="showMenu();return false;">选择</label>--%>
			</div>
			<input type="hidden" id="FDEPTCODE" name="FDEPTCODE">
			<input type="hidden" id="FORGCODE" name="FORGCODE">
			<input type="hidden" id="FDATARANGE" name="FDATARANGE">
		</form>
	</div>

	<div id = "edit-password" style="display: none">
		<form id="editPassword" class="form-horizontal" style="padding: 15px">
			<div class="form-group">
				<label for="password" class="col-xs-4 control-label">用户代码:</label>
				<div class="col-xs-8">
					<input type="password" class="form-control" id="password" name="password" placeholder="新密码">
				</div>
			</div>
			<div class="form-group">
				<label for="confirmpassowrd" class="col-xs-4 control-label">用户名称:</label>
				<div class="col-xs-8">
					<input type="password" class="form-control" id="confirmpassowrd" name="confirmpassowrd" placeholder="用户名称">
				</div>
			</div>
		</form>
	</div>

	<div id="deptTree" style="display: none;position: absolute;z-index: 20000000;background: #ffffff;border: 1px solid darkgrey;overflow-y: scroll;height: 200px">
		<div id = "dept-tree" class="ztree" style="width: 410px;min-height: 150px"></div>
	</div>

	<div id="rangeDeptTree" style="display: none;position: absolute;z-index: 20000000;background: #ffffff;border: 1px solid darkgrey;overflow-y: scroll;height: 200px">
		<div id = "range-dept-tree" class="ztree" style="width: 410px;min-height: 150px"></div>
	</div>

	<div id="setPost" style="display: none">

		<table id="postTable"></table>
	</div>

	<jsp:include page="../../static/commonviews/footer.jsp"/>
	<script type="text/javascript" src="user.js"></script>
</body>